summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-09-21 15:21:08 +0200
committerGitHub <noreply@github.com>2023-09-21 15:21:08 +0200
commit2ffea42ec87b74b19f6e28f9ac96368a4e230f47 (patch)
tree09d0cc0329f191fa667b787bf3b9648ffc444837
parentMerge pull request #11551 from t895/allow-save-imports-always (diff)
parentpfs: Fix reading filenames past the buffer end (diff)
downloadyuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.tar
yuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.tar.gz
yuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.tar.bz2
yuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.tar.lz
yuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.tar.xz
yuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.tar.zst
yuzu-2ffea42ec87b74b19f6e28f9ac96368a4e230f47.zip
-rw-r--r--src/core/file_sys/partition_filesystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/file_sys/partition_filesystem.cpp b/src/core/file_sys/partition_filesystem.cpp
index 2527ae606..2422cb51b 100644
--- a/src/core/file_sys/partition_filesystem.cpp
+++ b/src/core/file_sys/partition_filesystem.cpp
@@ -47,6 +47,7 @@ PartitionFilesystem::PartitionFilesystem(VirtualFile file) {
// Actually read in now...
std::vector<u8> file_data = file->ReadBytes(metadata_size);
const std::size_t total_size = file_data.size();
+ file_data.push_back(0);
if (total_size != metadata_size) {
status = Loader::ResultStatus::ErrorIncorrectPFSFileSize;